package com.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * gateWayServer启动类
 */
@SpringBootApplication
@RestController
public class TestGateWayServer {

    public static void main(String[] args) {
        SpringApplication.run(TestGateWayServer.class);
    }

    @RequestMapping("serverHealth")
    public String serverHealth(){
        System.out.println("=====gateway server check health id ok ^-^");
        return "ok";
    }
}
